package com.zx.DAO;/*
 *@program:SSM
 *@author: zhangjian
 *@Time: 2021/7/22  22:49
 */

import com.zx.entity.Change;
import com.zx.entity.Project;
import org.apache.ibatis.annotations.Param;

import java.util.List;


//立项
public interface ProjectDao {

    List findMyProject(@Param("user") String user, @Param("state") String state);

    Object findProjectByID2(String pid);

    Object findcontractByPid(String pid);

    Object findFundsByPID(String pid);

    void checkProject(int parseInt);

    List findAllProject2();

    void toCheck(int pid);

    List findallproject3();

    void changeproject(Change change);

    void changeprojectstate(int pid);

    int approveChange(@Param("pid")int pid,@Param("pone")String pone,@Param("pmsg") String pmsg);

    void updateChpeople(@Param("pid") int pid,@Param("chpeople") String chpeople);

    void deletechange(int pid);

    List findAllchange();

    //添加申报信息
    void addProject(Project project);

    //添加意见栏（受理）
    void updateAdvice(Project project);

    //查询受理
    List<Project> findProjectShou();

    //添加意见栏（评审）
    void updateAdvice1(Project project);

    //查询评审
    List<Project> findProjectPing();

    //添加意见栏（立项）
    void updateAdvice2(Project project);

    //查询立项
    List<Project> findProjectLi();


    //删除申报信息
    void deleteProject(Integer pid);

    //修改申报信息
    void updateProject(Project project);

    //查询申报信息
    List<Project> findProjectShen();

    //查询全部
    List<Project> findAll();

    //更新前查询
    Project findProjectByID(int pid);

    //更新
    void updateProjectByID(Project project);
}
